package com.haoze.nurseapp.service;

import com.haoze.common.response.Result;
import com.haoze.nurseapp.model.UserEntity;

/**
 * @author yangyb
 * @date 2018/06/09
 */
public interface UserService {
    Result login(UserEntity user);

    /**
     * 验证用户密码
     * @param rawPassword     原密码
     * @param encodedPassword 加密后的密码
     * @return boolean
     */
    boolean verifyPassword(String rawPassword, String encodedPassword);

    /**
     * 获取用户信息
     * @param account
     * @return
     */
    Result getUserInfo(String account);

    UserEntity getUserByAccount(String account);

    Result updateClinetIdByAccount(String account, String clientId);
}
